import request from '@/utils/request'

// 查询学生信息列表
export function listStudent (query) {
  return request({
    url: '/platform/student/list',
    method: 'get',
    params: query
  })
}

// 查询学生信息详细
export function getStudent (studentId) {
  return request({
    url: '/platform/student/' + studentId,
    method: 'get'
  })
}

// 新增学生信息
export function addStudent (data) {
  return request({
    url: '/platform/student',
    method: 'post',
    data: data
  })
}

// 修改学生信息
export function updateStudent (data) {
  return request({
    url: '/platform/student',
    method: 'put',
    data: data
  })
}

// 删除学生信息
export function delStudent (studentId) {
  return request({
    url: '/platform/student/' + studentId,
    method: 'delete'
  })
}

// 导入学生信息
export function importData (data) {
  return request({
    url: '/platform/student/importData',
    method: 'post',
    data: data,
    timeout: 30000
  })
}
